<?php Yii::app()->clientScript->registerCssFile('css/InvoiceReport.css');?>
<div id="invoice-report">
    <div id="create-date">
        <?php echo date('Y-m-d'); ?>
        <br/>
        <?php echo date('H:i:s'); ?>
    </div>

    <div id="title">
        Contract Report
    </div>
    <div id="content">
        <?php 
        $table=new CI_Table();
        $table->set_template(array(
            'table_open'=>'<table style="width:1300px">'
        ));
        $table->set_heading('Contract ID','Contract Type','Start Date','Custno - Locno','Location Name','City State Zip','Status');
        foreach($data['data'] as $item){
            $table->add_row(
                    CHtml::link($item['contractid'],array('/contracts/update','contractid'=>$item['contractid'])),
                    $item['contracttypeText'],
                    $item['contractstartdate'],
                    $item['custno'] .' '. $item['locno'],
                    $item['locname'],
                    $item['csz'],
                    $item['statusText']
                    );
        }
        echo $table->generate();
        ?>
       
    </div>
   
  
</div>